/* $Id: MatchTemplate.java 39 2009-07-24 22:48:06Z h_m_r@gmx.de $ */
package org.jugger.tournament.model;

import org.jugger.tournament.model.score.ScoreCalculator;

public class MatchTemplate {

	public final Team teamA;
	public final Team teamB;
	public final int pointsA;
	public final int pointsB;
	public final boolean extraTime;
	public final boolean isFinished;

	public MatchTemplate(Team teamA, Team teamB, int pointsA, int pointsB, boolean extraTime, boolean isFinished) {
		this.teamA = teamA;
		this.teamB = teamB;
		this.pointsA = pointsA;
		this.pointsB = pointsB;
		this.extraTime = extraTime;
		this.isFinished = isFinished;
	}

	public Match createMatch(ScoreCalculator scoreCalculator) {
		return new Match(scoreCalculator, teamA, teamB, pointsA, pointsB, extraTime, isFinished);
	}
}
